package com.zizhu.idgen.repository;


import com.zizhu.common.ddd.domain.Repository;
import com.zizhu.idgen.domain.NumberConfig;
import com.zizhu.idgen.domain.NumberConfigStatus;

import java.util.Optional;

/**
 * Created by Administrator on 2018/1/24 0024.
 */

public interface NumberConfigRepository extends Repository<Long, NumberConfig> {

    Optional<NumberConfig> getFirstByStatus(NumberConfigStatus status);
}
